namespace HPIT_LiuzuPoint.Entity.POCOModel
{
    using System;
    using System.Data.Entity;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Linq;

    public partial class Gift : DbContext
    {
        public Gift()
            : base("name=Gift2")
        {
        }

        public virtual DbSet<ExchangeGifts> ExchangeGifts { get; set; }
        public virtual DbSet<ExchangLogs> ExchangLogs { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<ExchangeGifts>()
                .Property(e => e.EG_GiftCode)
                .IsUnicode(false);

            modelBuilder.Entity<ExchangeGifts>()
                .Property(e => e.EG_GiftName)
                .IsUnicode(false);

            modelBuilder.Entity<ExchangeGifts>()
                .Property(e => e.EG_Photo)
                .IsUnicode(false);

            modelBuilder.Entity<ExchangeGifts>()
                .Property(e => e.EG_Remark)
                .IsUnicode(false);

            modelBuilder.Entity<ExchangLogs>()
                .Property(e => e.EL_GiftCode)
                .IsUnicode(false);

            modelBuilder.Entity<ExchangLogs>()
                .Property(e => e.EL_GiftName)
                .IsUnicode(false);

            modelBuilder.Entity<ExchangLogs>()
                .Property(e => e.EL_Remark)
                .IsUnicode(false);
        }
    }
}
